package com.utils.gui;

import java.util.Hashtable;


public class ArabicCharUtil {
private static Hashtable<Character,CharConnection> hash=new Hashtable<Character, CharConnection>();
static
{
	
	hash.put('\u0630', CharConnection.RIGHT);
	hash.put('\u0636', CharConnection.BOTH);
	hash.put('\u0635', CharConnection.BOTH);
	hash.put('\u062b', CharConnection.BOTH);
	hash.put('\u0642', CharConnection.BOTH);
	hash.put('\u0641', CharConnection.BOTH);
	hash.put('\u063a', CharConnection.BOTH);
	hash.put('\u0639', CharConnection.BOTH);
	hash.put('\u0647', CharConnection.BOTH);
	hash.put('\u062e', CharConnection.BOTH);
	hash.put('\u062d', CharConnection.BOTH);
	hash.put('\u062c', CharConnection.BOTH);
	hash.put('\u062f', CharConnection.RIGHT);
	hash.put('\u0634', CharConnection.BOTH);
	hash.put('\u0633', CharConnection.BOTH);
	hash.put('\u064a', CharConnection.BOTH);
	hash.put('\u0628', CharConnection.BOTH);
	hash.put('\u0644', CharConnection.BOTH);
	hash.put('\u0627', CharConnection.RIGHT);
	hash.put('\u0623', CharConnection.RIGHT);
	hash.put('\u062a', CharConnection.BOTH);
	hash.put('\u0646', CharConnection.BOTH);
	hash.put('\u0645', CharConnection.BOTH);
	hash.put('\u0643', CharConnection.BOTH);
	hash.put('\u0637', CharConnection.BOTH);
	hash.put('\u0626', CharConnection.BOTH);
	hash.put('\u0621', CharConnection.ZERO);
	hash.put('\u0624', CharConnection.RIGHT);
	hash.put('\u0631', CharConnection.RIGHT);
	hash.put('\u0644', CharConnection.BOTH);
	hash.put('\u0649', CharConnection.RIGHT);
	hash.put('\u0629', CharConnection.RIGHT);
	hash.put('\u0648', CharConnection.RIGHT);
	hash.put('\u0632', CharConnection.RIGHT);
	hash.put('\u0638', CharConnection.BOTH);

}
public static CharConnection getCharConnection(char c)
	{
	//System.out.println("Character.getDirectionality ="+Character.getDirectionality(c));
		return hash.get(c);
	}
	

}
